package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */

class Animal{
    protected String name;

    public Animal(String name) {
        this.name = name;
    }
}

interface IFlying{
    void fly();
}

interface IRunning{
    void run();
}

interface ISwimming{
    void swim();
}

public class Test {
    public static void main(String[] args) {
        Fish fish = new Fish("miaomiao");
        fish.swim();
    }
}
